package com.monika.main.system.util.doc;

import org.ofdrw.core.basicStructure.pageObj.Page;
import org.ofdrw.layout.OFDDoc;
import org.ofdrw.reader.OFDReader;

import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * @author:whh
 * @date: 2025-05-10 14:36
 * <p></p>
 */
public class OFD extends Document<OFDDoc,byte[]> {

    /**
     * 总页数
     */
    private int pages;


    /**
     * 当前页
     */
    private int cur = 1;

    public OFD(File ofd) throws IOException {
        super(new OFDDoc(Paths.get(ofd.getPath())));
        OFDReader reader = new OFDReader(Paths.get(ofd.getPath()));
        Page page = reader.getPage(1);

    }

    @Override
    public boolean hasNext() {
        return false;
    }

    @Override
    public byte[] next() {
        return new byte[0];
    }
}
